package day02;

public class DoubleDemo {
    public static void main(String[] args) {

        double a = 3.0;
        double b = 2.9;
        System.out.println(a - b);//有可能舍入误差

        double c = 5.0;
        double d = 4.9;
        System.out.println(c - d);//舍入误差

        double e = 3.14;//默认为double类型
        float f = 3.14f;//float类型


    }
}
